<?php
class CountryTO {
        private $IDCountry = '';
	private $shortName   = '';
	private $fullName   = '';
        private $popular = '';
        private $visible = '';
        private $leagueList = array();

	function __construct(){
	}

        public function getIDCountry(){
            return $this->IDCountry;
        }
        public function setIDCountry($IDCountry){
            $this->IDCountry = $IDCountry;
        }
        public function getShortName(){
            return $this->shortName;
        }
        public function setShortName($shortName){
            $this->shortName = $shortName;
        }
        public function getFullName(){
            return $this->fullName;
        }
        public function setFullName($fullName){
            $this->fullName = $fullName;
        }
        public function getPopular(){
            return $this->popular;
        }
        public function setPopular($popular){
            $this->popular = $popular;
        }
        public function getVisible(){
            return $this->visible;
        }
        public function setVisible($visible){
            $this->visible = $visible;
        }
        public function getLeagueList(){
            return $this->leagueList;
        }
        public function setLeagueList($leagueList){
            $this->leagueList = $leagueList;
        }

        public function toArray(){
            $data = array(
                'IDCountry' => $this->getIDCountry(),
                'shortName' => $this->getShortName(),
                'fullName' => $this->getFullName(),
                'popular' => $this->getPopular(),
                'visible' => $this->getVisible(),
                'leagueList' => $this->getLeagueList()
            );
            return $data;
        }

        public function toString(){
            $ret = 'Country(IDCountry: '.$this->IDCountry.
                    ';shortName: '.$this->shortName.
                    ';fullName: '.$this->fullName.
                    ';popular: '.$this->popular.
                    ';visible: '.$this->visible.')';
            $ret .= "Leagues[";
            foreach($this->leagueList as $league){
                $ret .= "{";
                $ret .= $league->toString();
                $ret .= "}";
            }
            $ret .= "]";
            return $ret;
        }
}
?>
